package com.gitee.wsl.statemachine.trigger

typealias ActionTriggerValidator<State> = (beforeState:State, toState: State)->Boolean

typealias ActionTriggerFun<State> = (beforeState:State, toState: State)->Unit

class ActionTriggerConfig<State>{

   var tryActionHandler: ActionTriggerValidator<State>?=null

   var beforeHandler:  ActionTriggerFun<State>?=null

   var entryHandler :  ActionTriggerFun<State>?=null

   var afterHandler :  ActionTriggerFun<State>?=null

   var leaveHandler :  ActionTriggerFun<State>?=null

}